Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(e2e): test tip of the branch #40

Merged
merged 6 commits into from
Aug 4, 2023

Conversation

smallstepman
Copy link
Contributor

@smallstepman smallstepman commented Aug 3, 2023

This PR changes the way we install extensions in e2e tests. This will allow us to test the latest changes in the codebase and catch any issues early on.

Instead of running tests against the extension installed from the latest release (by installing tarball from GitHub Releases via dfx extension install), we will run tests against extensions built from the source code of the tip of the branch.

We're building the extension from the source code using cargo-dist (the same thing that we're using in release CI) and installing it manually (without using dfx extensions install ..., and instead moving the directory with extension to $(dfx cache show)/extension; note: perhaps in the future, it will be a good idea to be able to install the extension directly from archive e.g., dfx extension install --from-archive <URL|PATH>, this will let us get rid of dfx_extension_install_manually() in e2e/utils.sh).

@smallstepman smallstepman requested review from a team as code owners August 3, 2023 16:00
e2e/utils.sh Outdated Show resolved Hide resolved
Co-authored-by: Eric Swanson <[email protected]>
@smallstepman smallstepman merged commit 0a5059a into main Aug 4, 2023
@smallstepman smallstepman deleted the mnl/e2e-tests-are-testing-tip-of-the-branch branch August 29, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants